package com.zy.shiro.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zy.shiro.domain.SysMenu;
import com.zy.vo.MenuAuthResult;

import java.util.List;

public interface SysMenuService extends IService<SysMenu> {

  /**
   * 分配权限
   * @param userId
   * @return
   */
  MenuAuthResult loadMenuAndAuth(Long userId);

  /**
   * 查询用户的菜单权限
   * @param userId
   * @return
   */
  List<SysMenu> queryeMenuByUserIdForList(Long userId);
}
